<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="0">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>政府数据开放平台</title>
    <style>
        form table tr td:first-child {
            text-align: right;
        }
    </style>

    <jsp:include page="common/include.jsp"/>
    <script src="/resources/js/lib/highcharts.js"></script>
    <script type="application/javascript" src="/resources/js/opendata/init.js" charset="utf-8"></script>


</head>


<body class="easyui-layout" style="width:100%;height:100%;background-color: rgb(224,236,255);">


<div id="admin_setpassword" class="easyui-dialog" data-options="title:'密码修改',modal:true,closed:true,buttons:[{
				text:'保存',
				handler:function(){

                   var form=$('#admin_setpassword').find('form');
				   form.form('submit',{
				       url:'/admin/setPassword',
				       success:function(data){

                          data=$.parseJSON(data);
                          util.requestUtil(data, $('#admin_setpassword'), null);
				       }
				   });

				}
			},{
				text:'关闭',
				handler:function(){}
			}]">
    <form>
        <table>
            <tr>
                <td>原密码：</td>
                <td>
                    <input type="password" name="oldpassword" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>新密码：</td>
                <td>
                    <input type="password" name="newpassword" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>确认密码</td>
                <td>
                    <input type="password" name="conformpassword" class="easyui-textbox">
                </td>
            </tr>
        </table>
    </form>
</div>
<%--顶端 标题--%>
<div data-options="region:'north'" style="height:66px">
    <div style="background-color: rgb(224,236,255);height:100%; padding-top: 0px; padding-left: 260px;">
        <div style="width: 300px;  height:100%;float: left   ">
            <div style="margin-top: 0px; height:100%;  font-size: 18px; font-weight: bold;"><br/><%--政府数据开发平台--%></div>
        </div>
        <div style="width: 200px;  height:100%; float: right"><br/><br/>你好, ${sessionScope.admin.username}<br/>

            <a href="javascript:$('#admin_setpassword').dialog('open');">密码修改</a>&nbsp;<a href="admin/loginOut">安全退出</a>
        </div>
    </div>
</div>


<div data-options="region:'south',split:false" style="height:30px;background-color: rgb(224,236,255);"></div>

<%--
<div data-options="region:'east',split:false,title:'Info'"
     style="width:150px;background-color: rgb(224,236,255);"></div>--%>


<div id="functionMenu" data-options="region:'west',split:false,title:'功能菜单'" title="West"
     style="width:200px;background-color: rgb(224,236,255);">

</div>

<div id="main" data-options="region:'center',iconCls:'icon-ok'" style="background-color: rgb(224,236,255);">

</div>


</body>
</html>


<script>
    function loginDialog() {


        $(document).keydown(function (e) {
            // 回车键事件
            if (e.which == 13) {
                login();
            }
        });


        var dialog = $("<div></div>");
        dialog.dialog({
            href: '/admin/loginV',
            width: 300,

            modal: true,
            closable: false,
            title: '登录'
        });
        dialog.dialog('open');


    }

    <c:if test="${sessionScope.admin==null}">
    $(loginDialog());


    </c:if>


</script>